package org.cg;

import java.io.FileNotFoundException;
import java.io.FileReader;

public class Gestores {
	
	private static volatile GestorMundo gestorMundo = new GestorMundo();
	private static volatile GestorColisao gestorColisao = new GestorColisao();
	
	public static void inicializar(String file) throws FileNotFoundException {
		GestorMundo gestorMundo = new GestorMundo();
		Ficheiro.inicializarMundo(new FileReader(file), gestorMundo);
	}
	
	public static GestorMundo getGestorMundo() {
		return gestorMundo;
	}
	
	public static GestorColisao getGestorColisao() {
		return gestorColisao;
	}
}
